package com.fulihui.common.result.web;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author: Levon
 * @version: v 0.1 2018-06-08 11:09
 */
@Getter
@Setter
@ToString
@ApiModel(value = "结果对象", description = "结果对象")
public class Result<T> {
    @ApiModelProperty(value = "是否成功:成功(true)失败(false)")
    private boolean success;

    @ApiModelProperty(value = "业务编码")
    private int code;

    @ApiModelProperty(value = "业务信息")
    private String message;

    @ApiModelProperty(value = "具体数据")
    private T info;

}
